<template>
  <div id="discover">
    <div class="nav nav-disc">
      <el-dropdown>
        <el-button>
          更多菜单
          <i class="el-icon-arrow-down el-icon--right"></i>
        </el-button>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item> <router-link to="/discover/tuijian" :class="{action:$route.name=='tuijian'}">推荐</router-link></el-dropdown-item>
          <el-dropdown-item><router-link to="/discover/toplist" :class="{action:$route.name=='toplist'}">排行榜</router-link></el-dropdown-item>
          <el-dropdown-item><router-link to="/discover/playlist" :class="{action:$route.name=='playlist'}">歌单&reg;</router-link></el-dropdown-item>
          <el-dropdown-item><router-link to="/discover/artist" :class="{action:$route.name=='artist'}">歌手</router-link></el-dropdown-item>
          <el-dropdown-item><router-link to="/discover/album" :class="{action:$route.name=='album'}">新碟上架</router-link></el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
      <ul>
        <li>
          <router-link to="/discover/tuijian" :class="{action:$route.name=='tuijian'}">推荐</router-link>
        </li>
        <li>
          <router-link to="/discover/toplist" :class="{action:$route.name=='toplist'}">排行榜</router-link>
        </li>
        <li>
          <!-- %E5%85%A8%E9%83%A8 -->
          <router-link :to="'/discover/playlist/cat='+'%E5%85%A8%E9%83%A8'" :class="{action:$route.name=='playlist'}">歌单&reg;</router-link>
        </li>
        <li>
          <router-link to="/discover/artist" :class="{action:$route.name=='artist'}">歌手</router-link>
        </li>
        <li>
          <router-link to="/discover/album" :class="{action:$route.name=='album'}">新碟上架</router-link>
        </li>
      </ul>
      
    </div>

    <router-view />
  </div>
</template>
<style>
@media screen and (max-width: 650px) {
  /* 响应导航栏 */
.nav-disc ul{
  display: none;
}
}
.nav-disc .el-button{
  background-color: #c20c0c;
  color: white;
  border: none;
  border-radius:0px ;
  
}
#discover .el-dropdown{
  
  position:absolute;
  top:0;
  left: 10px;
}
.nav-disc {
  overflow: hidden;
  width: 100%;
  height: 34px;
  font-size: 12px;
  background-color: #c20c0c;
  line-height: 34px;
  padding-left: 10%+50px;
  position: relative;
}
.nav-disc ul{
  overflow: hidden;
  position:absolute;
  top:0px;
  left: 15%;
}
.nav-disc a:-webkit-any-link {
  display: inline-block;
  padding: 0 15px;
  height: 20px;
  line-height: 20px;
  color: #fff;
}
.nav-disc a:hover {
  background-color: #9b0909;
  border-radius: 17px;
}
.nav-disc .action {
  background-color: #9b0909;
  border-radius: 17px;
}
.nav-disc li {
  height: 34px;
  padding: 0 15px;
}

</style>